<?php

class LogFormatterXml
{
    private $_formatType = null;
    
    private $_modifed = false;
    private $_rootName = null;
    private $_maps = array();
    
    public function __construct($type)
    {
        $this->_formatType = $type;
    }
    
    public function setRoot($rootName)
    {
        $this->_rootName = $rootName;
        $this->_modifed = true;
    }
    
    public function addMap($new, $org)
    {
        $this->_maps[$new] = $org;
        $this->_modifed = true;
    }
    
    public function isModifed()
    {
        return $this->_modifed;
    }
    
    public function getRoot()
    {
        return $this->_rootName;
    }
    
    public function getMaps()
    {
        return $this->_maps;
    }
}

?>